<template>

  <div>
    <div @click="$emit('input',value+1)">
      这里是一个v-model子组件-{{ value }}
    </div>

    {{ b }} <button @click="$emit('update:b', 2001)">修改Num</button>
    {{ c }} <button @click="$emit('update:c', 21)">修改Num2</button>
  </div>
</template>
<script>
export default {
  props: {
    value: {
      type: Number,
      default: 0
    },
    b: {
      type: Number,
      default: 0
    },
    c: {
      type: Number,
      default: 0
    }
  }
}
</script>
